package com.neusoft.neu24.mapper;

import com.neusoft.neu24.Result.CommonResult;
import com.neusoft.neu24.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface RoleMapper {

    List<Role> listAll();

    Integer add(Role role);

    List<Integer> loadById(Integer rid);

    Integer edit(Role role);

    List<Integer> selectAuthById(Integer rid);

    Integer authDeleteById(Integer rid);

    Integer authInsertById(@Param("rid")Integer rid, @Param("sids") List<Integer> sids);

    Integer deleteRoleById(Integer rid);
}
